<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <video id="v1" autoplay>
        <source src="media/myVideo.mp4" type="video/mp4"></video><source>
    </video>
    <br>
    <button id="btn" onclick="play()">播放，暂停</button>
    <script>
        
        function play(){
            var v=document.getElementById('v1')
            if(v.paused){
                v.play()
            }else{
                v.pause()
            }
        }
    </script>
</body>
</html>